#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;


class A
{
public:
	void fun()
	{
		cout << "func" << endl;
	}
protected:
	int _id;
};
class B :public A
{
public:
	void fun(int i)
	{
		cout << "func(int i)->" << endl;
	}
};

class Person
{
public:
	void print()
	{
		cout << _name << endl;
		cout << _age << endl;
	}
	void fun()
	{
		_age = 10;
		cout << _name << _age << endl;
	}
protected:
	string _name = "sjkfjsdj";
	int _age = 10;
	int _id;
};
class Student : public Person
{
public:
	void fun()
	{
		_name = "zhangsan";
		_age = 10;
		cout << _name<<_age << endl;
	}
private:
	int _id = 1;
};
int main()
{
	B b;
	b.fun(1);
	b.A::fun();
	Student s;
	s.print();
	s.fun();
	Person p;
	p.print();
	s.Person::fun();
	//s.Person::print();
	return 0;
}